package com.dfrobot.demo.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "order_recurring")
public class OrderRecurring {
    @Id
    @Column(name = "order_recurring_id")
    private Integer orderRecurringId;

    @Column(name = "order_id")
    private Integer orderId;

    private String reference;

    @Column(name = "product_id")
    private Integer productId;

    @Column(name = "product_name")
    private String productName;

    @Column(name = "product_quantity")
    private Integer productQuantity;

    @Column(name = "recurring_id")
    private Integer recurringId;

    @Column(name = "recurring_name")
    private String recurringName;

    @Column(name = "recurring_description")
    private String recurringDescription;

    @Column(name = "recurring_frequency")
    private String recurringFrequency;

    @Column(name = "recurring_cycle")
    private Short recurringCycle;

    @Column(name = "recurring_duration")
    private Short recurringDuration;

    @Column(name = "recurring_price")
    private BigDecimal recurringPrice;

    private Boolean trial;

    @Column(name = "trial_frequency")
    private String trialFrequency;

    @Column(name = "trial_cycle")
    private Short trialCycle;

    @Column(name = "trial_duration")
    private Short trialDuration;

    @Column(name = "trial_price")
    private BigDecimal trialPrice;

    private Byte status;

    @Column(name = "date_added")
    private Date dateAdded;
}